module Pdns
    newrecord("foo.my.net") do |query, answer|
        answer.qclass query[:qclass]
        answer.qtype :A
        answer.ttl 600
    
        case country(query[:remoteip])
            when "DE"
                answer.content "10.0.0.1"
            else
                answer.content "10.2.0.1"
                answer.content "10.3.0.1"
        end
    end
end

# vi:tabstop=4:expandtab:ai:filetype=ruby
